<template>
  <div class="page-wrapper">
    <yuanChengMenZhenDetail type="feeBack" :onLoad="onLoad"/>
    <div style="textAlign: center;margin: 20px 0 10px">
        <feeBackBtn :id="$route.query.id" :feeBackInfo="{
        refundAmt: info.refundAmt,
        refundTradingChannels: info.refundTradingChannels,
        refundOrderStatus: info.refundOrderStatus}" />
        <Button type="primary" @click="handleBack">
          <i class = "iconfont icon-butongyi" style="font-size:14px;margin-right:5px"></i>返回
        </Button>
    </div>
  </div>
</template>

<script>
import feeBackBtn from './components/feeBackBtn';
import yuanChengMenZhenDetail from "@/pages/components/yuanChengMenZhenDetail";
export default {
    components: {
      yuanChengMenZhenDetail,
      feeBackBtn
    },
    data() {
      return {
        info: {
          refundAmt: null,
          refundTradingChannels: null,
          refundOrderStatus: null,
        }
      }
    },
    methods: {
      onLoad(info) {
        this.info = {
          refundAmt: info.refundAmt,
          refundTradingChannels: info.refundTradingChannels,
          refundOrderStatus: info.refundOrderStatus,
        }
      },
      handleBack() {
        this.$router.push({
          path: '/index/orders/feedBackMgt/list',
          query: this.$route.query
        });
      },
    },
}
</script>

<style scoped lang="less">
.page-wrapper {
    padding: 10px;
    width: 100%;
    background: #ffffff;
    box-sizing: border-box;
}   
</style>